Optimal. Leaf size=125 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}-\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt [4]{b} d \sqrt{\sqrt{a}-\sqrt{b}}}-\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}+\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt [4]{b} d \sqrt{\sqrt{a}+\sqrt{b}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.102077, antiderivative size = 125, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {3215, 1093, 205, 208} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}-\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt [4]{b} d \sqrt{\sqrt{a}-\sqrt{b}}}-\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}+\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt [4]{b} d \sqrt{\sqrt{a}+\sqrt{b}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3215
Rule 1093
Rule 205
Rule 208
Rubi steps
\begin{align*} \int \frac{\sin (c+d x)}{a-b \sin ^4(c+d x)} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{1}{a-b+2 b x^2-b x^4} \, dx,x,\cos (c+d x)\right )}{d}\\ &=\frac{\sqrt{b} \operatorname{Subst}\left (\int \frac{1}{-\sqrt{a} \sqrt{b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{2 \sqrt{a} d}-\frac{\sqrt{b} \operatorname{Subst}\left (\int \frac{1}{\sqrt{a} \sqrt{b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{2 \sqrt{a} d}\\ &=-\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}-\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt{\sqrt{a}-\sqrt{b}} \sqrt [4]{b} d}-\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} \cos (c+d x)}{\sqrt{\sqrt{a}+\sqrt{b}}}\right )}{2 \sqrt{a} \sqrt{\sqrt{a}+\sqrt{b}} \sqrt [4]{b} d}\\ \end{align*}
Mathematica [C] time = 0.162016, size = 183, normalized size = 1.46 \[ \frac{i \text{RootSum}\left [-16 \text{$\#$1}^4 a+\text{$\#$1}^8 b-4 \text{$\#$1}^6 b+6 \text{$\#$1}^4 b-4 \text{$\#$1}^2 b+b\& ,\frac{-i \text{$\#$1}^3 \log \left (\text{$\#$1}^2-2 \text{$\#$1} \cos (c+d x)+1\right )+i \text{$\#$1} \log \left (\text{$\#$1}^2-2 \text{$\#$1} \cos (c+d x)+1\right )+2 \text{$\#$1}^3 \tan ^{-1}\left (\frac{\sin (c+d x)}{\cos (c+d x)-\text{$\#$1}}\right )-2 \text{$\#$1} \tan ^{-1}\left (\frac{\sin (c+d x)}{\cos (c+d x)-\text{$\#$1}}\right )}{-8 \text{$\#$1}^2 a+\text{$\#$1}^6 b-3 \text{$\#$1}^4 b+3 \text{$\#$1}^2 b-b}\& \right ]}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.095, size = 90, normalized size = 0.7 \begin{align*} -{\frac{b}{2\,d}\arctan \left ({b\cos \left ( dx+c \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}-b \right ) b}}}} \right ){\frac{1}{\sqrt{ab}}}{\frac{1}{\sqrt{ \left ( \sqrt{ab}-b \right ) b}}}}-{\frac{b}{2\,d}{\it Artanh} \left ({b\cos \left ( dx+c \right ){\frac{1}{\sqrt{ \left ( \sqrt{ab}+b \right ) b}}}} \right ){\frac{1}{\sqrt{ab}}}{\frac{1}{\sqrt{ \left ( \sqrt{ab}+b \right ) b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{\sin \left (d x + c\right )}{b \sin \left (d x + c\right )^{4} - a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.56133, size = 1480, normalized size = 11.84 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]